package com.yexs.common.enums;

/**
 * @Description: 网页授权 认证scope
 * @Author: yexs
 * @CreateDate: 2018/5/28 12:52
 * @Version: 1.0
 */
public enum UserAuthScope {
    SNSAPI_USERINFO(0, "snsapi_userinfo", "需要用户授权"),
    SNSAPI_BASE(1, "snsapi_base", "静默授权");

    private int code;
    private String value;
    private String description;

    UserAuthScope(int code, String value, String description) {
        this.code = code;
        this.value = value;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

    public int getIntValue() {
        return this.code;
    }
}
